import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Forum } from './entity';
import { Repository } from 'typeorm';

@Injectable()
export class ForumService {
  constructor(
    @InjectRepository(Forum) private readonly ForumRepository: Repository<Forum>
  ) {}
  getForumList() {
   return this.ForumRepository.find();
  }
}
